package log4j2.study;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * Hello world!
 */
public class App {

    private static Logger logger = LogManager.getLogger(App.class);

    public static void main(String[] args) {

        System.out.println("Hello World!");

        logger.trace("my trace log4j2 -- 日志");
        logger.debug("my debug log4j2 -- 日志");
        logger.info("my info log4j2 -- 日志");
        logger.warn("my warn log4j2 -- 日志");
        logger.error("my error log4j2 -- 日志");
        logger.fatal("my fatal log4j2 -- 日志");

    }
}
